/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.service;


import com.comac.ins.common.BaseResult;
import com.comac.ins.config.FeignConfiguration;
import com.comac.ins.vo.req.SelectDictListRequestVO;
import com.comac.ins.vo.res.SysDictResponseVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;


/**
 * 数据字典
 */
@FeignClient(url = "${feign.userCenterUrl:}", value = "usercenter-service", contextId = "usercenter-dict", configuration = FeignConfiguration.class)
@Api(value = "数据字典", tags = "数据字典")
public interface DictFeignService {

    @RequestMapping(value = "feignApi/userCenter/dict/selectList", method = RequestMethod.POST)
    @ApiOperation(value = "字典列表")
    BaseResult<List<SysDictResponseVO>> selectList(@RequestBody SelectDictListRequestVO param);

    @RequestMapping(value = "feignApi/userCenter/dict/selectPage", method = RequestMethod.POST)
    @ApiOperation(value = "字典分页")
    BaseResult selectPage(@RequestBody SelectDictListRequestVO param);

    @RequestMapping(value = "feignApi/userCenter/dict/selectPageDict", method = RequestMethod.POST)
    @ApiOperation(value = "所有字典查询")
    BaseResult<List<SysDictResponseVO>> selectPageDict();

}
